<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.5"/>
<title>mechanoChemIGA: Tensor&lt; order, dim, T &gt; Class Template Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">mechanoChemIGA
   &#160;<span id="projectnumber">0.2.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="codestructure.html"><span>Code&#160;structure</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
      <li><a href="modules.html"><span>Functions</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="https://github.com/mechanoChem/mechanoChem"><span>GitHub&#160;code&#160;repo</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(10)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_tensor-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Tensor&lt; order, dim, T &gt; Class Template Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="tensor_8h_source.html">tensor.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a09dacbd79d16b74ba8698e27ae3dc42b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tensor.html#a09dacbd79d16b74ba8698e27ae3dc42b">Tensor</a> ()</td></tr>
<tr class="separator:a09dacbd79d16b74ba8698e27ae3dc42b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0528c8f5592468e7bc7c78fcb843712b"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tensor.html#a0528c8f5592468e7bc7c78fcb843712b">Tensor</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;b)</td></tr>
<tr class="separator:a0528c8f5592468e7bc7c78fcb843712b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2a730307c55f50e6a9d3665c234620e6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; order-1, dim, T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tensor.html#a2a730307c55f50e6a9d3665c234620e6">operator[]</a> (unsigned int i)</td></tr>
<tr class="separator:a2a730307c55f50e6a9d3665c234620e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9688ac9421205322f94c72d7cf6e7595"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order-1, dim, T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tensor.html#a9688ac9421205322f94c72d7cf6e7595">operator[]</a> (unsigned int i) const </td></tr>
<tr class="separator:a9688ac9421205322f94c72d7cf6e7595"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f0bed513e88b3d46634d64d0728d7eb"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tensor.html#a5f0bed513e88b3d46634d64d0728d7eb">operator=</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;b)</td></tr>
<tr class="separator:a5f0bed513e88b3d46634d64d0728d7eb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aff0f9e2b08f25ed6af07cd81a0ed6676"><td class="memTemplParams" colspan="2">template&lt;typename U &gt; </td></tr>
<tr class="memitem:aff0f9e2b08f25ed6af07cd81a0ed6676"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#aff0f9e2b08f25ed6af07cd81a0ed6676">operator*</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, U &gt; &amp;b) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; order-1, dim, decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())&gt; const</td></tr>
<tr class="separator:aff0f9e2b08f25ed6af07cd81a0ed6676"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:a1b0f8dc1dc255e5d031bf1ec123793ee"><td class="memItemLeft" align="right" valign="top">std::vector&lt; <a class="el" href="class_tensor.html">Tensor</a>&lt; order-1, <br class="typebreak"/>
dim, T &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_tensor.html#a1b0f8dc1dc255e5d031bf1ec123793ee">value</a></td></tr>
<tr class="separator:a1b0f8dc1dc255e5d031bf1ec123793ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="related"></a>
Related Functions</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>(Note that these are not member functions.) </p>
</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operations related to all Tensor objects:</div></td></tr>
<tr class="memitem:a13e72a006d63e8af09966686b9251da7"><td class="memTemplParams" colspan="2">template&lt;unsigned int order, unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a13e72a006d63e8af09966686b9251da7"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a13e72a006d63e8af09966686b9251da7">operator*</a> (T a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;b) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())&gt;</td></tr>
<tr class="separator:a13e72a006d63e8af09966686b9251da7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a245f6c779208e2fb51aeac547f1c5fce"><td class="memTemplParams" colspan="2">template&lt;unsigned int order, unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a245f6c779208e2fb51aeac547f1c5fce"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a245f6c779208e2fb51aeac547f1c5fce">operator*</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;b, T a) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())&gt;</td></tr>
<tr class="separator:a245f6c779208e2fb51aeac547f1c5fce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07fcde25f086faf2afb1d80d402ee694"><td class="memTemplParams" colspan="2">template&lt;unsigned int order, unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a07fcde25f086faf2afb1d80d402ee694"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a07fcde25f086faf2afb1d80d402ee694">operator+</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;b) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, decltype(std::declval&lt; T &gt;()+std::declval&lt; U &gt;())&gt;</td></tr>
<tr class="separator:a07fcde25f086faf2afb1d80d402ee694"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ebb19fbf586d07e5a4c6cefac26cb5d"><td class="memTemplParams" colspan="2">template&lt;unsigned int order, unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a8ebb19fbf586d07e5a4c6cefac26cb5d"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a8ebb19fbf586d07e5a4c6cefac26cb5d">operator-</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;b) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, decltype(std::declval&lt; T &gt;()-std::declval&lt; U &gt;())&gt;</td></tr>
<tr class="separator:a8ebb19fbf586d07e5a4c6cefac26cb5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operations related to 1st order Tensor objects:</div></td></tr>
<tr class="memitem:a3e99a15f8a8467028028b8d60e8fc580"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a3e99a15f8a8467028028b8d60e8fc580"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a3e99a15f8a8467028028b8d60e8fc580">operator*</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, U &gt; &amp;b) -&gt; decltype(a[0]*b[0])</td></tr>
<tr class="separator:a3e99a15f8a8467028028b8d60e8fc580"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operations related to 2nd order Tensor objects:</div></td></tr>
<tr class="memitem:a5a8bda2f027340305afc45b49388bcc8"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a5a8bda2f027340305afc45b49388bcc8"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a5a8bda2f027340305afc45b49388bcc8">double_contract</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, U &gt; &amp;b) -&gt; decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())</td></tr>
<tr class="separator:a5a8bda2f027340305afc45b49388bcc8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8fc3d16cc82edd3a5d4c40f20863bb91"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a8fc3d16cc82edd3a5d4c40f20863bb91"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a8fc3d16cc82edd3a5d4c40f20863bb91">operator*</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, U &gt; &amp;b) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())&gt;</td></tr>
<tr class="separator:a8fc3d16cc82edd3a5d4c40f20863bb91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad82bf064ac85d03cde37854363afe9de"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:ad82bf064ac85d03cde37854363afe9de"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#ad82bf064ac85d03cde37854363afe9de">identity</a> (<a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;a)</td></tr>
<tr class="separator:ad82bf064ac85d03cde37854363afe9de"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae47b0b29069a6f95a8ea98c64b6d91e8"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:ae47b0b29069a6f95a8ea98c64b6d91e8"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#ae47b0b29069a6f95a8ea98c64b6d91e8">trans</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;a)</td></tr>
<tr class="separator:ae47b0b29069a6f95a8ea98c64b6d91e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa49dbdc74bfc6fba3f707032e4918b7c"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:aa49dbdc74bfc6fba3f707032e4918b7c"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#aa49dbdc74bfc6fba3f707032e4918b7c">trace</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;a)</td></tr>
<tr class="separator:aa49dbdc74bfc6fba3f707032e4918b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d1f4671cbc87300dbbb987b6db28d96"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a4d1f4671cbc87300dbbb987b6db28d96"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a4d1f4671cbc87300dbbb987b6db28d96">det</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 2, T &gt; &amp;a)</td></tr>
<tr class="separator:a4d1f4671cbc87300dbbb987b6db28d96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7843bbc36c9300509f6cefb1c1ebf64f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a7843bbc36c9300509f6cefb1c1ebf64f"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a7843bbc36c9300509f6cefb1c1ebf64f">det</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 3, T &gt; &amp;a)</td></tr>
<tr class="separator:a7843bbc36c9300509f6cefb1c1ebf64f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8ed527cd06f7c6169e944b6332e81a44"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a8ed527cd06f7c6169e944b6332e81a44"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 2, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a8ed527cd06f7c6169e944b6332e81a44">inv</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 2, T &gt; &amp;a)</td></tr>
<tr class="separator:a8ed527cd06f7c6169e944b6332e81a44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a27d9a099d122fe2525805ba60f5ff6fe"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a27d9a099d122fe2525805ba60f5ff6fe"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 3, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a27d9a099d122fe2525805ba60f5ff6fe">inv</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 3, T &gt; &amp;a)</td></tr>
<tr class="separator:a27d9a099d122fe2525805ba60f5ff6fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operations related to 3rd order Tensor objects:</div></td></tr>
<tr class="memitem:a0d8d7cd689342c88f61442873c060b89"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:a0d8d7cd689342c88f61442873c060b89"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a0d8d7cd689342c88f61442873c060b89">triple_contract</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 3, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 3, dim, U &gt; &amp;b) -&gt; decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())</td></tr>
<tr class="separator:a0d8d7cd689342c88f61442873c060b89"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operations related to 4th order Tensor objects:</div></td></tr>
<tr class="memitem:ab50f9741f15a2b5891037f70c5598ae1"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T , typename U , typename V &gt; </td></tr>
<tr class="memitem:ab50f9741f15a2b5891037f70c5598ae1"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#ab50f9741f15a2b5891037f70c5598ae1">full_contract</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 4, dim, U &gt; &amp;b, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, V &gt; &amp;c) -&gt; decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;()*std::declval&lt; V &gt;())</td></tr>
<tr class="separator:ab50f9741f15a2b5891037f70c5598ae1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adce659b434eae62cf38d6d54afb6abcf"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T , typename U &gt; </td></tr>
<tr class="memitem:adce659b434eae62cf38d6d54afb6abcf"><td class="memTemplItemLeft" align="right" valign="top">auto&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#adce659b434eae62cf38d6d54afb6abcf">double_contract</a> (const <a class="el" href="class_tensor.html">Tensor</a>&lt; 4, dim, T &gt; &amp;a, const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, U &gt; &amp;b) -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, decltype(std::declval&lt; T &gt;()*std::declval&lt; U &gt;())&gt;</td></tr>
<tr class="separator:adce659b434eae62cf38d6d54afb6abcf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Operations converting arrays to Tensor objects:</div></td></tr>
<tr class="memitem:a006cda52416d4282f3eb209dfb96c9e2"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:a006cda52416d4282f3eb209dfb96c9e2"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a006cda52416d4282f3eb209dfb96c9e2">convert</a> (const T b[])</td></tr>
<tr class="separator:a006cda52416d4282f3eb209dfb96c9e2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ff5a91439f88fd82aed50dafb31bdb5"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:a7ff5a91439f88fd82aed50dafb31bdb5"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a7ff5a91439f88fd82aed50dafb31bdb5">convert</a> (const T b[][dim])</td></tr>
<tr class="separator:a7ff5a91439f88fd82aed50dafb31bdb5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87bd0388317717327d40d91664ed4c5c"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:a87bd0388317717327d40d91664ed4c5c"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 3, dim, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#a87bd0388317717327d40d91664ed4c5c">convert</a> (const T b[][dim][dim])</td></tr>
<tr class="separator:a87bd0388317717327d40d91664ed4c5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac33df3d5766648f68fa66739df2f639e"><td class="memTemplParams" colspan="2">template&lt;unsigned int dim, typename T &gt; </td></tr>
<tr class="memitem:ac33df3d5766648f68fa66739df2f639e"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="class_tensor.html">Tensor</a>&lt; 4, dim, T &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="class_tensor.html#ac33df3d5766648f68fa66739df2f639e">convert</a> (const T b[][dim][dim][dim])</td></tr>
<tr class="separator:ac33df3d5766648f68fa66739df2f639e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><h3>template&lt;unsigned int order, unsigned int dim, typename T&gt;<br/>
class Tensor&lt; order, dim, T &gt;</h3>

<p>Primary Tensor template class </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
  <table class="tparams">
    <tr><td class="paramname">order</td><td>An unsigned int defining the order of the tensor (1, 2, 3, or 4). </td></tr>
    <tr><td class="paramname">dim</td><td>An unsigned int defing the spatial dimension of the problem. </td></tr>
    <tr><td class="paramname">T</td><td>The type that is to be stored in the tensor. </td></tr>
  </table>
  </dd>
</dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="a09dacbd79d16b74ba8698e27ae3dc42b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Default constructor. </p>

</div>
</div>
<a class="anchor" id="a0528c8f5592468e7bc7c78fcb843712b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Copy constructor. </p>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="aff0f9e2b08f25ed6af07cd81a0ed6676"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">auto operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;order-1,dim,decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())&gt; const</td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Contract the given tensor with a 1st order tensor. </p>

</div>
</div>
<a class="anchor" id="a5f0bed513e88b3d46634d64d0728d7eb"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp; operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Assignment operator. </p>

</div>
</div>
<a class="anchor" id="a2a730307c55f50e6a9d3665c234620e6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt;order-1,dim,T&gt;&amp; operator[] </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Access/set an element of the tensor. Returns a tensor with the order reduced by 1. </p>

</div>
</div>
<a class="anchor" id="a9688ac9421205322f94c72d7cf6e7595"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="class_tensor.html">Tensor</a>&lt;order-1,dim,T&gt;&amp; operator[] </td>
          <td>(</td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>i</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Access an element of the tensor. Returns a tensor with the order reduced by 1. </p>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a class="anchor" id="a006cda52416d4282f3eb209dfb96c9e2"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, T &gt; convert </td>
          <td>(</td>
          <td class="paramtype">const T&#160;</td>
          <td class="paramname"><em>b</em>[]</td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts 1D array to a 1st order Tensor </p>

</div>
</div>
<a class="anchor" id="a7ff5a91439f88fd82aed50dafb31bdb5"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; convert </td>
          <td>(</td>
          <td class="paramtype">const T&#160;</td>
          <td class="paramname"><em>b</em>[][dim]</td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts 2D array to a 2nd order Tensor </p>

</div>
</div>
<a class="anchor" id="a87bd0388317717327d40d91664ed4c5c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 3, dim, T &gt; convert </td>
          <td>(</td>
          <td class="paramtype">const T&#160;</td>
          <td class="paramname"><em>b</em>[][dim][dim]</td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts 3D array to a 3rd order Tensor </p>

</div>
</div>
<a class="anchor" id="ac33df3d5766648f68fa66739df2f639e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 4, dim, T &gt; convert </td>
          <td>(</td>
          <td class="paramtype">const T&#160;</td>
          <td class="paramname"><em>b</em>[][dim][dim][dim]</td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts 4D array to a 4th order Tensor </p>

</div>
</div>
<a class="anchor" id="a4d1f4671cbc87300dbbb987b6db28d96"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T det </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 2, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the determinant of the 2nd order Tensor object (dim==2). </p>

</div>
</div>
<a class="anchor" id="a7843bbc36c9300509f6cefb1c1ebf64f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T det </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 3, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the determinant of the 2nd order Tensor object (dim==3). </p>

</div>
</div>
<a class="anchor" id="a5a8bda2f027340305afc45b49388bcc8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto double_contract </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Double contraction of two 2nd order Tensor objects. Returns a scalar. </p>

</div>
</div>
<a class="anchor" id="adce659b434eae62cf38d6d54afb6abcf"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto double_contract </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 4, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;2,dim,decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Performs a double contraction between a 4th order Tensor, <img class="formulaInl" alt="$a$" src="form_32.png"/>, and a 2nd order Tensor, <img class="formulaInl" alt="$b$" src="form_33.png"/>, in this manner: <img class="formulaInl" alt="$a_{ijkl}b_{kl}$" src="form_35.png"/>, with implied summation over <img class="formulaInl" alt="$k$" src="form_36.png"/> and <img class="formulaInl" alt="$l$" src="form_37.png"/>. </p>

</div>
</div>
<a class="anchor" id="ab50f9741f15a2b5891037f70c5598ae1"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto full_contract </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 4, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, V &gt; &amp;&#160;</td>
          <td class="paramname"><em>c</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;()*std::declval&lt;V&gt;())</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Performs a full contraction on two 2nd order Tensors, <img class="formulaInl" alt="$a$" src="form_32.png"/> and <img class="formulaInl" alt="$c$" src="form_5.png"/>, and a 4th order Tensor, <img class="formulaInl" alt="$b$" src="form_33.png"/>, in this manner: <img class="formulaInl" alt="$a_{ij}b_{ijkl}c_{kl}$" src="form_34.png"/>, with implied summation over all indices. Returns a scalar. </p>

</div>
</div>
<a class="anchor" id="ad82bf064ac85d03cde37854363afe9de"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void identity </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Converts the 2nd order Tensor object to an isotropic tensor (equivalent to the identity matrix). </p>

</div>
</div>
<a class="anchor" id="a8ed527cd06f7c6169e944b6332e81a44"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 2, T &gt; inv </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 2, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the inverse of the 2nd order Tensor object (dim==2). </p>

</div>
</div>
<a class="anchor" id="a27d9a099d122fe2525805ba60f5ff6fe"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 3, T &gt; inv </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, 3, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the inverse of the 2nd order Tensor object (dim==3). </p>

</div>
</div>
<a class="anchor" id="a13e72a006d63e8af09966686b9251da7"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto operator* </td>
          <td>(</td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;order,dim,decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Scalar multiplication of a Tensor, where the scalar precedes the Tensor object. </p>

</div>
</div>
<a class="anchor" id="a245f6c779208e2fb51aeac547f1c5fce"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">T&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;order,dim,decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Scalar multiplication of a Tensor, where the scalar follows the Tensor object. </p>

</div>
</div>
<a class="anchor" id="a3e99a15f8a8467028028b8d60e8fc580"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 1, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; decltype(a[0]*b[0])</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Single contraction (i.e. dot product) of two 1st order Tensor objects. Returns a scalar. </p>

</div>
</div>
<a class="anchor" id="a8fc3d16cc82edd3a5d4c40f20863bb91"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto operator* </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;2,dim,decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Multiplication operator of two 2nd order Tensor objects (equivalent to matrix multiplication). Returns a 2nd order Tensor object. </p>

</div>
</div>
<a class="anchor" id="a07fcde25f086faf2afb1d80d402ee694"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto operator+ </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;order,dim,decltype(std::declval&lt;T&gt;()+std::declval&lt;U&gt;())&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Addition operator for any two Tensors of the same order. </p>

</div>
</div>
<a class="anchor" id="a8ebb19fbf586d07e5a4c6cefac26cb5d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto operator- </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; order, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; <a class="el" href="class_tensor.html">Tensor</a>&lt;order,dim,decltype(std::declval&lt;T&gt;()-std::declval&lt;U&gt;())&gt;</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Subtraction operator for any two Tensors of the same order. </p>

</div>
</div>
<a class="anchor" id="aa49dbdc74bfc6fba3f707032e4918b7c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">T trace </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the trace of the 2nd order Tensor object. </p>

</div>
</div>
<a class="anchor" id="ae47b0b29069a6f95a8ea98c64b6d91e8"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; trans </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 2, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the transpose of the 2nd order Tensor object. </p>

</div>
</div>
<a class="anchor" id="a0d8d7cd689342c88f61442873c060b89"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">auto triple_contract </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 3, dim, T &gt; &amp;&#160;</td>
          <td class="paramname"><em>a</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_tensor.html">Tensor</a>&lt; 3, dim, U &gt; &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> -&gt; decltype(std::declval&lt;T&gt;()*std::declval&lt;U&gt;())</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">related</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Triple contraction of two 3rd order Tensor objects. Returns a scalar. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a class="anchor" id="a1b0f8dc1dc255e5d031bf1ec123793ee"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;<a class="el" href="class_tensor.html">Tensor</a>&lt;order-1,dim,T&gt; &gt; value</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>include/<a class="el" href="tensor_8h_source.html">tensor.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.5
</small></address>
</body>
</html>
